package com.cucn.ingmall.product.feign;

import com.cucn.common.utils.R;
import com.cucn.ingmall.product.feign.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author KouChaoJie
 * @since: 2022/2/14 16:12
 */
@FeignClient(value = "ingmall-seckill", fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {
    /**
     * 根据skuId查询秒杀商品
     */
    @GetMapping("/sku/seckill/{skuId}")
    R getSkukillInfo(@PathVariable("skuId") Long skuId);
}
